﻿<phone:PhoneApplicationPage 
    x:Class="Win7RovMobileApp.InvoiceDetails"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">
    
    <ScrollViewer>
        <Grid>
            <Grid.Background>
                <ImageBrush ImageSource="/Win7RovMobileApp;component/Images/RoadBackground.png" Stretch="Fill" Opacity="0.9" />
            </Grid.Background>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <!-- detalii facturare: persoana fizica/juridica -->
            <TextBlock Grid.Row="0" Text="Detalii facturare" VerticalAlignment="Center" FontWeight="Bold" FontSize="22" Margin="15">
            <TextBlock.Foreground>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="#FFD40505" Offset="0" />
                    <GradientStop Color="#FFE2CF40" Offset="0.506" />
                    <GradientStop Color="#FF225BDB" Offset="0.977" />
                </LinearGradientBrush>
            </TextBlock.Foreground>
            </TextBlock>
            <TextBlock Grid.Row="1" Grid.Column="0" Text="Persoana" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <toolkit:ListPicker Grid.Row="1" Grid.Column="1" Name="PersonType" Margin="10,0" MaxWidth="215">
                <toolkit:ListPickerItem Content="Fizica"/>
                <toolkit:ListPickerItem Content="Juridica"/>
            </toolkit:ListPicker>
            <TextBlock Grid.Row="2" Grid.Column="0" Text="Adresa" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="2" Grid.Column="1" Height="200" Margin="10,0" TextWrapping="Wrap" Text="{Binding Path=Adress, Mode=TwoWay}"/>
            
            <!-- detalii autovehicul -->
            <TextBlock Grid.Row="3" Text="Detalii autovehicul" VerticalAlignment="Center" FontWeight="Bold" FontSize="22" Margin="15" >
            <TextBlock.Foreground>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="#FFD40505" Offset="0" />
                    <GradientStop Color="#FFE2CF40" Offset="0.506" />
                    <GradientStop Color="#FF225BDB" Offset="0.977" />
                </LinearGradientBrush>
            </TextBlock.Foreground>
            </TextBlock>
            <TextBlock Grid.Row="4" Grid.Column="0" Text="Insemnul de stat" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="4" Grid.Column="1" Margin="10,0" Text="{Binding Path=VehicleCountry, Mode=TwoWay}"/>
            <TextBlock Grid.Row="5" Grid.Column="0" Text="Numar inmatriculare" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="5" Grid.Column="1" Margin="10,0" Text="{Binding Path=VehiclePlate, Mode=TwoWay}"/>
                
            <!-- detalii client -->
            <TextBlock Grid.Row="6" Text="Detalii client" VerticalAlignment="Center" FontWeight="Bold" FontSize="22" Margin="15">
            <TextBlock.Foreground>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="#FFD40505" Offset="0" />
                    <GradientStop Color="#FFE2CF40" Offset="0.506" />
                    <GradientStop Color="#FF225BDB" Offset="0.977" />
                </LinearGradientBrush>
            </TextBlock.Foreground>
            </TextBlock>
            <TextBlock Grid.Row="7" Grid.Column="0" Text="Nume" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="7" Grid.Column="1" Margin="10,0" Text="{Binding Path=OwnerName, Mode=TwoWay}"/>
            <TextBlock Grid.Row="8" Grid.Column="0" Text="Prenume" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="8" Grid.Column="1" Margin="10,0" Text="{Binding Path=OwnerAlias, Mode=TwoWay}"/>
            <TextBlock Grid.Row="9" Grid.Column="0" Text="Telefon" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="9" Grid.Column="1" Margin="10,0" Text="{Binding Path=PhoneNumber, Mode=TwoWay}"/>
            <TextBlock Grid.Row="10" Grid.Column="0" Text="Email" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="10" Grid.Column="1" Margin="10,0" Text="{Binding Path=Email, Mode=TwoWay}"/>
            
            <!-- detalii card -->
            <TextBlock Grid.Row="11" Text="Detalii CARD" VerticalAlignment="Center" FontWeight="Bold" FontSize="22" Margin="15">
                <TextBlock.Foreground>
                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                        <GradientStop Color="#FFD40505" Offset="0" />
                        <GradientStop Color="#FFE2CF40" Offset="0.506" />
                        <GradientStop Color="#FF225BDB" Offset="0.977" />
                    </LinearGradientBrush>
                </TextBlock.Foreground>
            </TextBlock>
            <TextBlock Grid.Row="12" Grid.Column="0" Text="Numar card" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="12" Grid.Column="1" Margin="10,0"/>
            <TextBlock Grid.Row="13" Grid.Column="0" Text="Tip card" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <toolkit:ListPicker Grid.Row="13" Grid.Column="1" Name="CardType" Margin="10,0" MaxWidth="215" SelectionChanged="SetCardType">
                <toolkit:ListPickerItem Content="Visa"/>
                <toolkit:ListPickerItem Content="Mastercard"/>
                <toolkit:ListPickerItem Content="Visa Electron"/>
                <toolkit:ListPickerItem Content="Maestro"/>
            </toolkit:ListPicker>
            <TextBlock Grid.Row="14" Grid.Column="0" Text="Expirare card" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <toolkit:DatePicker Grid.Row="14" Grid.Column="1" Margin="10,0" Name="DeadlineDatePicker" Foreground="Red"/>
            <Grid Grid.Row="15">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" Text="Codul cardului" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                <TextBlock Grid.Row="1" Text="(nu ptr Maestro)" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />
            </Grid>
            
            <TextBox Grid.Row="15" Grid.Column="1" Margin="10,0"/>
            <TextBlock Grid.Row="16" Grid.Column="0" Text="Titular card" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBox Grid.Row="16" Grid.Column="1" Margin="10,0" Text="{Binding Path=CardOwner, Mode=TwoWay}"/>
            
            <!-- OK ptr a merge la urmatorul ecran: sumar comanda -->
            <Button Grid.Row="17" Grid.Column="1" HorizontalAlignment="Right" Content="Next" Margin="10" BorderThickness="0.2" FontFamily="Comic Sans MS" Click="GotoCardDetails_Click" />

        </Grid>
    </ScrollViewer>

    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>
</phone:PhoneApplicationPage>
